import React from "react";
import { Row, Col} from "antd";
import { Route} from "react-router-dom";
import NewsList from "./newslist";
import AddNews from "./addnews";
import EditNews from './edit'
class PersonalCenter extends React.Component {
  render() {
    return (
      <div className="admin-body" style={{ padding: 24, minHeight: 360 }}>
        <Row>
          <Col span={24}>
            <Route path="/admin/n">
              <Route path="/admin/n/l">
                <NewsList />
              </Route>
              <Route path="/admin/n/a">
                <AddNews />
              </Route>
              <Route path="/admin/n/e">
                <EditNews />
              </Route>
            </Route>
          </Col>
        </Row>
      </div>
    );
  }
}

export default PersonalCenter;
